<?php
namespace app\controller;
use app\BaseController;
use think\facade\Db;
class Demo extends BaseController
{
    public function show()
    {
        $result = Db::name("user")->where("id",10)->fetchSql()->find();
        dump($result);

        $result = Db::name("user")->where("id",10)->find();
        echo Db::getLastSql();exit();
    }
}